package com.pdool.game.constant;

public class Constant {
    //每个玩家最大未处理掉的消息队列数
    public static final int USER_MAX_MSG_QUEUE_NUM = 100;


    // 获取服务器的cpu个数
    private static final int CPU_COUNT = Runtime.getRuntime().availableProcessors();// 获取cpu个数

    public static final String LOGIC_THREAD_POOL_NAME = "logic_pool";
    public static final int LOGIC_THREAD_POOL_QUEUE_SIZE = 100000;
    public static final int LOGIC_THREAD_POOL_CORE_SIZE = 100;
    public static final int LOGIC_THREAD_POOL_MAX_SIZE = 100;
    public static final int LOGIC_THREAD_POOL_KEEP_LIVE = 60;


    public static final String SLOW_THREAD_POOL_NAME = "slow_pool";

    public static final int SLOW_THREAD_POOL_QUEUE_SIZE = 100000;
    public static final int SLOW_THREAD_POOL_CORE_SIZE = 20;
    public static final int SLOW_THREAD_POOL_MAX_SIZE = 40;
    public static final int SLOW_THREAD_POOL_KEEP_LIVE = 60;

}
